import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)


//全局组件
import zllSelect from './components/zll-select.vue'
import importDialog from './components/import-dialog.vue'
Vue.component('zll-select', zllSelect)
Vue.component('import-dialog', importDialog)

//引入工具函数
import utils from '@/utils/utils.js'
//挂载到原型链
Vue.prototype.$utils = utils

//引入xlsx工具
import XLSX from '@/libs/json-toxlsx-master/xlsx.full.min.js'
import jsonToxlsx from '@/libs/json-toxlsx-master/jsonToxlsx.js'
import xlsxTojson from '@/libs/json-toxlsx-master/xlsxTojson.js'
//挂载到全局
window.XLSX = XLSX
window.jsonToxlsx = jsonToxlsx
window.xlsxTojson = xlsxTojson


//引入mock
//import mockData from '@/mock/index.js'
//模拟数据
//mockData()

//引入公共scss
import './assets/css/common.scss'
import './assets/css/iconfont.css'

Vue.config.productionTip = false

new Vue({
    render: h => h(App),
    router,
    store,
}).$mount('#app')
